package com.five.welcome.service;

import com.five.welcome.entity.WelcomeAnnouncement;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author ywt
 * @since 2024-07-15
 */
public interface WelcomeAnnouncementService extends IService<WelcomeAnnouncement> {
    //查询所有公告
    List<WelcomeAnnouncement> getALlAnnounce();

    //添加公告
    Integer addAnnounce(WelcomeAnnouncement welcomeAnnouncement);

    //删除公告
    int deleteAnnounceById(Integer id);

    //修改公告
    int updateAnnounceById(WelcomeAnnouncement welcomeAnnouncement);

    //管理员修改公告状态
    int updateAnnounceStatusById(Integer announcementStatus, Integer announcementId);

    //查询显示在首页的公告
    WelcomeAnnouncement getAnnounceOnStart();

    //修改显示首页
    void modOnStartById(Integer id,Integer onStart);
}
